

#import "SUNScroll.h"

@implementation SUNScroll
@synthesize image,line,Textlab,textView;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        image = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 120)];
        image.backgroundColor = [UIColor clearColor];
        [self addSubview:image];

        line = [[UIImageView alloc]initWithFrame:CGRectMake(20, 265, 280, 2)];
        line.backgroundColor = [UIColor clearColor];
        line.image = [UIImage imageNamed:@"line"];
        [self addSubview:line];
        
        self.textView = [[UITextView alloc] init] ;
        self.textView.frame = CGRectMake(20, 135, 280, 112);
        self.textView.backgroundColor = [UIColor clearColor];
        self.textView.textColor = [UIColor grayColor];
        self.textView.delegate = self;
        self.textView.font = [UIFont systemFontOfSize:16];
        self.textView.contentInset = UIEdgeInsetsMake(-11, -6, 0, 0);
        self.textView.editable = NO;
        self.textView.scrollEnabled = YES;
        [self addSubview:self.textView];
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
